<template>
  <div class="on">
    <section class="loginContainer">
      <div class="loginInner">
        <div class="login_header">
          <h2 class="login_logo">腾讯视频</h2>
          <div class="login_header_title">
            <router-link :to="{name:'noteLogin'}">短信登录</router-link>
            <router-link :to="{name:'passwordLogin'}">密码登录</router-link>
          </div>
        </div>
        <router-view></router-view>
        <a class="about_us">关于我们</a>
        <a
          class="go_back"
          @click="returnHome()"
        >
          <i class="iconfont icon-fanhui"></i>
        </a>
      </div>
    </section>
  </div>
</template>

<script>
export default {
  data () {
    return {
      noteflag: true,
      passwordflag: false
    }
  },
  methods: {
    returnHome () {
      this.$router.push({
        name: 'home' // 跳转到的路径名称
      })
    }
  }
}
</script>

<style scoped>
.on {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
}
.loginContainer {
  width: 100%;
  height: 100%;
  background: #fff;
}
.loginInner {
  padding-top: 60px;
  width: 80%;
  margin: 0 auto;
}
.login_logo {
  font-size: 40px;
  font-weight: bold;
  color: #02a774;
  text-align: center;
}
.login_header_title {
  padding-top: 40px;
  text-align: center;
}
.on {
  border-bottom: 2px solid #02a774;
}
.login_header .login_header_title > a:first-child {
  margin-right: 40px;
}
.login_header .login_header_title > a {
  color: #333;
  font-size: 14px;
  padding-bottom: 4px;
}
.login_header_title > a {
  color: #333;
  font-size: 14px;
  padding-bottom: 4px;
}
/* 选择 */
.login_content > form > div {
  display: none;
}
.login_content > form > div.on {
  display: block;
}

.about_us {
  display: block;
  font-size: 12px;
  margin-top: 20px;
  text-align: center;
  color: #999;
}
.go_back {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 30px;
  height: 30px;
}
</style>
